package io.terminus.spzx.feign.user;

import io.terminus.spzx.model.entity.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 用户OpenFeign客户端
 * @Date 2024-12-28
 */
@FeignClient(name = "service-user")
public interface UserFeignClient {

    /**
     * 获取用户的地址信息
     *
     * @param id 地址ID
     * @return 用户地址
     */
    @GetMapping("/api/user/userAddress/getUserAddress/{id}")
    UserAddress getUserAddress(@PathVariable Long id);

}
